package com.industrial.system.service;

import com.industrial.common.core.web.domain.AjaxResult;
import com.industrial.system.domain.SysArea;

import java.util.List;

/**
 * <p>
 *     行政区划数据Service
 * </p>
 * @author SangGuangCan
 * @since 2024-01-26
 */
public interface ISysAreaService {

    /**
     * <p>
     *     查询行政区划数据的树形结构
     * </p>
     * @return 树形结果
     */
    AjaxResult queryAreaTree();

    AjaxResult queryAreaTreeByCode(SysArea sysArea);

    List<SysArea> getAreaByParentId(String parentId);

    AjaxResult getAreaNameByCode(String code);

    AjaxResult queryAreaTreeByParentCode(String parentCode);

    AjaxResult queryAreaAllareaTreeByParentCode(String parentCode);

    List<String> queryAreaCodeByAreaName(String areaName);

    /**
     * 查询山东省的地市行政区
     * @param parentId
     * @return
     */
    AjaxResult getAreaInfoByOnlyCity(String parentId);

}
